import request from '@/utils/request'

// 查询产品制程列表
export function listRouteproduct(data) {
  return request({
    url: '/routeproduct/routeproduct/page',
    method: 'post',
    data: data
  })
}

// 查询产品制程详细
export function getRouteproduct(recordId) {
  return request({
    url: '/routeproduct/routeproduct/info',
    method: 'post',
    data: {recordId}
  })
}

// 新增产品制程
export function addRouteproduct(data) {
  return request({
    url: '/routeproduct/routeproduct/add',
    method: 'post',
    data: data
  })
}

// 修改产品制程
export function updateRouteproduct(data) {
  return request({
    url: '/routeproduct/routeproduct/update',
    method: 'post',
    data: data
  })
}

// 删除产品制程
export function delRouteproduct(recordId) {
  return request({
    url: '/routeproduct/routeproduct/delete',
    method: 'post',
    data: {recordId}
  })
}
